﻿
using System.ComponentModel.DataAnnotations;

namespace Middleware.ApiTest.Models
{
    /// <summary>
    /// 订单信息
    /// </summary>
    public class OrderInfo 
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string? OrderSn { get; set; }   
        /// <summary>
        /// 订单用户Id
        /// </summary>
        public string? UserId { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal? TotalAmout { get; set; }        
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayTime { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        public int PayStatus { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public OrderPrice OrderPrice { get; set; }     
        /// <summary>
        /// 订单商品
        /// </summary>
        public List<OrderItems> OrderItems { get; set; }
        /// <summary>
        /// 订单收获信息
        /// </summary>
        public ConsigneeInfo ConsigneeInfo { get; set; }

    }
}
